<template>
  <el-row v-loading="loading" class="main">
    <el-col :span="24" class="main">
      <el-card shadow="hover">

      </el-card>
    </el-col>
  </el-row>
</template>

<script>
import moment from "moment";
import {  get } from "@/network/access";

export default {
  name: "HostAccord",
  data() {
    return {
      moment,
      CodeData: [],
      loading: false,
    };
  },
  created() {
    this.loading = true;
    this.getAll();
  },
  methods: {
    getAll() {
      get()
        .then((res) => {
          this.CodeData = res.data;
          this.loading = false;
        })
        .catch(() => {
          this.$message.error("网络错误");
          this.loading = false;
        });
    },
  },
};
</script>

<style scoped>
.main {
  height: 100%;
  background-color: #fff;
}
</style>
